<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 700px;
            height: 600px;
            background-color: hotpink;
            background-image: url(https://img2.baidu.com/it/u=64414689,709034360&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=280);
            background-repeat: no-repeat;
            background-position: center center;
            background-size: contain;
        }
    </style>
</head>

<body>
    <div class="box"></div>
</body>

</html>